import 'package:flutter/material.dart';

class ImageButton extends StatelessWidget {

  VoidCallback onPress;
  String imageName;
  double imageWidth;
  double imageHeight;


  ImageButton({this.onPress, this.imageName, this.imageWidth = 20, this.imageHeight = 20});

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new GestureDetector(
      child: new Image.asset(imageName,width: imageWidth,height: imageHeight,),
      onTap: onPress,
    );
  }
}